<#include "/layout/header.ftl" />
<#import "/include/ui.ftl" as blue />

<script>

function search_click()
{
	var obj = $.getObject("#div_search");	
	$("#div_grid").simpleLoad("/auth/app_list", obj, 1);
	
}
</script>

<div class="am-g am-cf am-margin-top am-margin-bottom">
	<div class="am-u-sm-3 am-padding-right-0">
		<div class="am-btn-group">
			<a href="${path}/auth/app_get" class="am-btn am-btn-primary am-radius">添加</a>
			<a href="javascript:void(0)" onclick="blue_refresh_click('/auth/app_refresh')" class="am-btn am-btn-default am-radius">刷新缓存</a>
		</div>
	</div>
	<div class="am-u-sm-9 am-form-inline" id="div_search">
		<div class="am-form-group">
			<input type="text" name="name" class="am-form-field" placeholder="输入名称" />
		</div>

		<div class="am-form-group">
			<select  name="state" data-am-selected="{'btnWidth': '120px'}">
				<@blue.select list=map.state search=1 placeholder="选择状态" />
			</select>
		</div>

		<a href="javascript:void(0)" onclick="search_click()" class="am-btn am-btn-primary am-radius">搜索</a>
	</div>
</div>

<div class="am-g" id="div_grid">
	<#include "/auth/app_list_grid.ftl" />
</div>

<#include "/layout/footer.ftl" />